
package com.apes.crm.vip.masterdata.model;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;


/**
 * 功能：vip身份
 *
 * @Auther: czs
 * @Date: 2021-04-07 09:27:20
 */

@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = VipIdentity.CONST_TABLE_NAME)
public class VipIdentity extends Model {
    public static final String CONST_TABLE_NAME = "mas_vip_identity";

    @Id
    @Column(name = "id", length = 60)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "FN会员身份编码",padding = 3)
    @Comment("FN会员身份编码")
    private String id;//身份编码

    @Column(name = "name",length = 120, nullable = false)
    @Comment("FN会员身份名称")
    private String name;//身份名称

    @Column(name = "remark", length = 200)
    @Comment("备注")
    private String remark;

}
